﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="tintuc.aspx.cs" Inherits="tintuc" Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Tin Tức</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" />

    <p>
    <img alt="" src="images/mod_titl.gif" />
        <a href="trangchu.aspx">trang chủ</a>
        <img alt="" src="images/mod_titl.gif" />
        tin tức
    </p>
    <telerik:RadListView ID="RadListViewNews" runat="server" ItemPlaceholderID="newsPlaceHolder"
        AllowPaging="true" PageSize="5" >
        <LayoutTemplate>
            <asp:PlaceHolder ID="newsPlaceHolder" runat="server"></asp:PlaceHolder>
                                <div style="float: left; margin-left: 30%;">
<asp:Button runat="server" ID="btnFirst" CommandName="Page" CommandArgument="First"
Text="First" Enabled="<%#Container.CurrentPageIndex > 0 %>" />
<asp:Button runat="server" ID="btnPrev" CommandName="Page" CommandArgument="Prev"
Text="Prev" Enabled="<%#Container.CurrentPageIndex > 0 %>" />
                                    <span style="vertical-align: top; position: relative; top: 4px">Trang
                                        <%#Container.CurrentPageIndex + 1 %>
                                        trên
                                        <%#Container.PageCount %></span>
<asp:Button runat="server" ID="btnNext" CommandName="Page" CommandArgument="Next"
Text="Next" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" />
<asp:Button runat="server" ID="btnLast" CommandName="Page" CommandArgument="Last"
Text="Last" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" />
                                </div>
        </LayoutTemplate>
        <ItemTemplate>
            <div class="post">
                <h2>
                    <a href='chitiettintuc.aspx?nID=<%#Eval("NewsID")%>'>
                        <%#Eval("NewsTitle")%></a></h2>
                <div class="pic">
                    <img alt="" src="<%#Eval("NewsPicture")%>" />
                    <p>
                        <%#Eval("NewsPictureName")%></p>
                </div>
                <div class="news">
                    <p class="postmeta">
                        Thể loại: <a href="tintuc.aspx?tID=<%#Eval("TypeID")%>">
                            <%#Eval("TypeName")%></a> |
                        <%#Eval("NewsDate")%>
                        | lượt xem:
                        <%#Eval("CountView") %></p>
                    <p>
                        <%#Eval("NewsSubContent") %>
                        <a href="chitiettintuc.aspx?nID=<%#Eval("NewsID")%>">chi tiết...</a>
                    </p>
                </div>
            <div class="clearing">
            </div>    
            </div>
            
        </ItemTemplate>
    </telerik:RadListView>
    <div class="line">
    </div>
</asp:Content>
